home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / MPI_Scan.z / MPI_Scan
Encoding:
Text File  |  2002-10-03  |  3.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MMMMPPPPIIII____SSSSCCCCAAAANNNN((((3333))))                                                        MMMMPPPPIIII____SSSSCCCCAAAANNNN((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MMMMPPPPIIII____SSSSccccaaaannnn - Computes the scan (partial reductions) of data on a collection
  10.      of processes
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      C:
  14.  
  15.           #include <mpi.h>
  16.  
  17.           int MPI_Scan ( _s_e_n_d_b_u_f, _r_e_c_v_b_u_f, _c_o_u_n_t, _d_a_t_a_t_y_p_e,
  18.           op, comm )
  19.           void             *_s_e_n_d_b_u_f;
  20.           void             *_r_e_c_v_b_u_f;
  21.           int               _c_o_u_n_t;
  22.           MPI_Datatype      _d_a_t_a_t_y_p_e;
  23.           MPI_Op            _o_p;
  24.           MPI_Comm          _c_o_m_m;
  25.  
  26.  
  27.      C++:
  28.  
  29.           #include <mpi.h>
  30.  
  31.           void Intracomm::Scan(
  32.           const void*       _s_e_n_d_b_u_f,
  33.           void*             _r_e_c_v_b_u_f,
  34.           int               _c_o_u_n_t,
  35.           const Datatype&   _d_a_t_a_t_y_p_e,
  36.           const Op&         _o_p) const
  37.  
  38.  
  39.      Fortran:
  40.  
  41.           INCLUDE "mpif.h" (or USE MPI)
  42.  
  43.           <type> SENDBUF(*), RECVBUF(*)
  44.           INTEGER _c_o_u_n_t, _d_a_t_a_t_y_p_e, _o_p, _c_o_m_m,
  45.  
  46.           CALL MPI_SCAN(_s_e_n_d_b_u_f, _r_e_c_v_b_u_f, _c_o_u_n_t, _d_a_t_a_t_y_p_e, _o_p, _c_o_m_m, _i_e_r_r_o_r)
  47.  
  48.  
  49. SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
  50.      This release implements the MPI 1.2 standard, as documented by the MPI
  51.      Forum in the spring 1997 release of _M_P_I:  _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
  52.      _S_t_a_n_d_a_r_d.
  53.  
  54. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  55.      The MMMMPPPPIIII____SSSSccccaaaannnn routine computes the scan (partial reductions) of data on a
  56.      collection of processes.  This routine accepts the following parameters:
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMPPPPIIII____SSSSCCCCAAAANNNN((((3333))))                                                        MMMMPPPPIIII____SSSSCCCCAAAANNNN((((3333))))
  71.  
  72.  
  73.  
  74.      _s_e_n_d_b_u_f   Specifies the starting address of the send buffer (choice)
  75.  
  76.      _c_o_u_n_t     Specifies the number of elements in the input buffer (integer)
  77.  
  78.      _d_a_t_a_t_y_p_e  Specifies the data type of elements of the input buffer
  79.                (handle)
  80.  
  81.      _o_p        Specifies the operation (handle)
  82.  
  83.      _c_o_m_m      Specifies the communicator (handle)
  84.  
  85.      _r_e_c_v_b_u_f   Returns the starting address of the receive buffer (choice)
  86.  
  87.      _i_e_r_r_o_r    Specifies the return code value for successful completion,
  88.                which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mmmmppppiiiiffff....hhhh
  89.                file.
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.